package com.seawaterbt.ssm.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

@TableName("DAT_RoomTemp")
public class ShengDatRoomTemp {

    @TableId("HouseHoldID")
    private String houseHoldId;

    @TableField("GetTime")
    private Date getTime;

    @TableField("RoomTemp")
    private Double roomTemp;

    @TableField("AddTime")
    private Date addTime;

    public String getHouseHoldId() {
        return houseHoldId;
    }

    public void setHouseHoldId(String houseHoldId) {
        this.houseHoldId = houseHoldId;
    }

    public Date getGetTime() {
        return getTime;
    }

    public void setGetTime(Date getTime) {
        this.getTime = getTime;
    }

    public Double getRoomTemp() {
        return roomTemp;
    }

    public void setRoomTemp(Double roomTemp) {
        this.roomTemp = roomTemp;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    private static DateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

    @Override
    public String toString() {
        return "ShengDatCrewData{" +
                "houseHoldId='" + houseHoldId + '\'' +
                ", getTime=" + df.format(getTime) +
                ", roomTemp=" + roomTemp +
                ", addTime=" + df.format(addTime) +
                '}';
    }
}
